﻿namespace WMS6.Web.BillingServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="StatementDetailInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class StatementDetailInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private int LineIDField;
        [OptionalField]
        private string OrderIDField;
        [OptionalField]
        private int OrderLineIDField;
        [OptionalField]
        private decimal QtyField;
        [OptionalField]
        private decimal ReceivableField;
        [OptionalField]
        private decimal ReceivedField;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string SkuIDField;
        [OptionalField]
        private string SourceTypeField;
        [OptionalField]
        private string StatementIDField;
        [OptionalField]
        private string TypeField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public int LineID
        {
            get
            {
                return this.LineIDField;
            }
            set
            {
                if (!this.LineIDField.Equals(value))
                {
                    this.LineIDField = value;
                    this.RaisePropertyChanged("LineID");
                }
            }
        }

        [DataMember]
        public string OrderID
        {
            get
            {
                return this.OrderIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OrderIDField, value))
                {
                    this.OrderIDField = value;
                    this.RaisePropertyChanged("OrderID");
                }
            }
        }

        [DataMember]
        public int OrderLineID
        {
            get
            {
                return this.OrderLineIDField;
            }
            set
            {
                if (!this.OrderLineIDField.Equals(value))
                {
                    this.OrderLineIDField = value;
                    this.RaisePropertyChanged("OrderLineID");
                }
            }
        }

        [DataMember]
        public decimal Qty
        {
            get
            {
                return this.QtyField;
            }
            set
            {
                if (!this.QtyField.Equals(value))
                {
                    this.QtyField = value;
                    this.RaisePropertyChanged("Qty");
                }
            }
        }

        [DataMember]
        public decimal Receivable
        {
            get
            {
                return this.ReceivableField;
            }
            set
            {
                if (!this.ReceivableField.Equals(value))
                {
                    this.ReceivableField = value;
                    this.RaisePropertyChanged("Receivable");
                }
            }
        }

        [DataMember]
        public decimal Received
        {
            get
            {
                return this.ReceivedField;
            }
            set
            {
                if (!this.ReceivedField.Equals(value))
                {
                    this.ReceivedField = value;
                    this.RaisePropertyChanged("Received");
                }
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string SkuID
        {
            get
            {
                return this.SkuIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SkuIDField, value))
                {
                    this.SkuIDField = value;
                    this.RaisePropertyChanged("SkuID");
                }
            }
        }

        [DataMember]
        public string SourceType
        {
            get
            {
                return this.SourceTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SourceTypeField, value))
                {
                    this.SourceTypeField = value;
                    this.RaisePropertyChanged("SourceType");
                }
            }
        }

        [DataMember]
        public string StatementID
        {
            get
            {
                return this.StatementIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatementIDField, value))
                {
                    this.StatementIDField = value;
                    this.RaisePropertyChanged("StatementID");
                }
            }
        }

        [DataMember]
        public string Type
        {
            get
            {
                return this.TypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TypeField, value))
                {
                    this.TypeField = value;
                    this.RaisePropertyChanged("Type");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

